package cn.tm.liu.mode.factory.demo1;

/**
 * @author Marvin.L
 * @description
 * @date 2022.04.09 13.43
 */
public class Main {
    public static void main(String[] args) {
        Computer pc = ComputerFactory.getInstance().getComputer("pc", "2 GB", "500 GB", "2.4 GHz");
        Computer server = ComputerFactory.getInstance().getComputer("server", "16 GB", "1 TB", "2.9 GHz");
        Computer unknow = ComputerFactory.getInstance().getComputer("unknow", "16 GB", "1 TB", "2.9 GHz");
        System.out.println(pc);
        System.out.println(server);
        System.out.println(unknow);
    }
}
